package QHgui.docing;

import com.javadocking.dockable.Dockable;
import com.javadocking.dockable.DockableState;
import com.javadocking.dockable.action.DockableStateAction;

import javax.swing.*;
import java.awt.event.ActionEvent;

/**
 * <p> TODU </P>
 *
 * @author yeager
 * @Version V1.1.1.0
 * @date 2023/11/24 10:40
 */
public class SCloseAllDockableStateAction extends AbstractAction implements DockableStateAction {
    private Dockable 	dockable;
    public SCloseAllDockableStateAction(Dockable dockable,Icon icon)
    {
        super("Close All",icon);
        this.dockable=dockable;
    }
    @Override
    public void actionPerformed(ActionEvent arg0) {
//		MainWorkingPanel mwp=(MainWorkingPanel)SingleInstance.getInstance(SingleInstanceKey.MainWorkingPanel);
//		mwp.closeAllDrawing();
    }

    @Override
    public Dockable getDockable() {
        // TODO Auto-generated method stub
        return dockable;
    }

    @Override
    public int getNewDockableState() {
        // TODO Auto-generated method stub
        return DockableState.CLOSED;
    }

}
